blob: 2e52c431406c780b724d89e57a5203adc626b677 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { get } from '$lib/utils';
export async function load({ params }) {
let { username } = params;
let body;
try {
body = await get(`/users/${username}`);
} catch (e) {
body = {};
}
return body;
}
|